import React, { Component } from 'react'
import header from "./header";
import style from "./style/set.module.scss"
import { Switch } from 'antd-mobile';
import 'antd-mobile/dist/antd-mobile.css';
class Set extends Component {
    state = {
        checked: false,
        checked1: true
    };
    render() {
        return (
            <div>
                <div className={`${style.location} ${style.item}`}>定位服务
                <Switch
                        className={style.switch}
                        checked={this.state.checked}
                        onChange={() => {
                            this.setState({
                                checked: !this.state.checked,
                            });
                        }}
                    /></div>
                <div className={`${style.privacy} ${style.item}`}> 隐私保护（隐藏手机号）
                <Switch
                        className={style.switch}
                        checked={this.state.checked1}
                        onChange={() => {
                            this.setState({
                                checked1: !this.state.checked1,
                            });
                        }}
                    />
                </div>
            </div>
        )
    }
}
export default header(Set, "设置")
